const ajaxSearch = (key = '') => {
 $.ajax({
  url: `https://suggest3.sinajs.cn/suggest/type=&key=${key}&name=suggestdata_1552747380094`,
  type: 'get',
  success(res) {
   console.log(res)
  }
 })
}

const _echart = () => {
 var myChart = echarts.init(document.getElementById('main'));
 let option = {
  tooltip: {
   trigger: 'axis',
   axisPointer: {
    type: 'cross',
    label: {
     backgroundColor: '#6a7985'
    }
   }
  },
  xAxis: {
   type: 'category',
   boundaryGap: false,
   data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  },
  yAxis: {
   type: 'value',
  },
  series: [{
   data: [820, 932, 901, 934, 1290, 1330, 1320],
   type: 'line'
  }, {
   data: [8120, 9312, 9011, 9314, 12190, 13310, 13210],
   type: 'line'
  }]
 };
 myChart.setOption(option);
}